import React,{ Component } from 'react';
import { Form,Input ,Select } from 'antd';
const Option = Select.Option;

class Inputs extends Component {
	constructor(props) {
		super(props);
		this.state = {
			myValue: '小米',
			arr: [33,55,22]
		}
	}
	render() {
		let { getFieldDecorator } = this.props.form;
		return (
			<div>
				{
					// getFieldDecorator('inputValue')(
					// 	<Input value="我的" />
					// )
				}
				<Select
		          mode="tags"
		          //size={size}
		          	placeholder="Please select"
		          	defaultValue={['a10', 'c12']}
		          	style={{ width: '50%' }}
		         	showSearch
                  	optionFilterProp="children"
		        >
		          {
		          		this.state.arr.map((item,index)=> {
			          		return <Option key={index}>{ item }</Option>
			          	})
		          }
		        </Select>
				
			</div>
		)
	}
}
export default Inputs = Form.create()(Inputs);